package com.shigi.knapsack.solvers.ga;

/**
 * Created by Miroslav Šiagi on 06/12/14.
 */
public class GAConfig {

    private int numOfGenerations;
    private double probOfCrossover;
    private double probOfReproduction;
    private double probOfMutation;
    private double selectPressureParam;
    private int numOfIterations;
    private int numOfIndividuals;

    public GAConfig(int numOfGenerations, int numOfIndividuals, double probOfCrossover, double probOfReproduction, double selectPressureParam, double probOfMutation, int numOfIterations) {
        this.numOfGenerations = numOfGenerations;
        this.probOfCrossover = probOfCrossover;
        this.probOfReproduction = probOfReproduction;
        this.probOfMutation = probOfMutation;
        this.selectPressureParam = selectPressureParam;
        this.numOfIterations = numOfIterations;
        this.numOfIndividuals = numOfIndividuals;
    }

    public int getNumOfGenerations() {
        return numOfGenerations;
    }

    public void setNumOfGenerations(int numOfGenerations) {
        this.numOfGenerations = numOfGenerations;
    }

    public double getProbOfCrossover() {
        return probOfCrossover;
    }

    public void setProbOfCrossover(double probOfCrossover) {
        this.probOfCrossover = probOfCrossover;
    }

    public double getProbOfReproduction() {
        return probOfReproduction;
    }

    public void setProbOfReproduction(double probOfReproduction) {
        this.probOfReproduction = probOfReproduction;
    }

    public double getSelectPressureParam() {
        return selectPressureParam;
    }

    public void setSelectPressureParam(double selectPressureParam) {
        this.selectPressureParam = selectPressureParam;
    }

    public int getNumOfIterations() {
        return numOfIterations;
    }

    public void setNumOfIterations(int numOfIterations) {
        this.numOfIterations = numOfIterations;
    }

    public int getNumOfIndividuals() {
        return numOfIndividuals;
    }

    public void setNumOfIndividuals(int numOfIndividuals) {
        this.numOfIndividuals = numOfIndividuals;
    }

    public double getProbOfMutation() {
        return probOfMutation;
    }

    public void setProbOfMutation(double probOfMutation) {
        this.probOfMutation = probOfMutation;
    }
}
